﻿<%@ Page Language="C#" validateRequest="false"  AutoEventWireup="true" CodeBehind="SystemDoc_search_list.aspx.cs" Inherits="Ccit.OA.SystemDoc.SystemDoc_search_list" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v8.1" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v8.1" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>系统文件列表页面</title>
    <link href="css/enter.css" rel="stylesheet" type="text/css">
     <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
     <script language="javascript" type="text/javascript">
            <!--
            /* 复选框选择 */
            function OnGridSelectionChanged(){
                dgMain.GetSelectedFieldValues("ID",OnGridSelectionComplete); 
               // dgMain.GetSelectedFieldValues("BigOrderId",OnGridSelectionCompleteOrderId); 
            }
            
            function OnGridSelectionComplete(values){
                document.getElementById("hidIds").value = values;
               //parent.frames.ztButton();
            }
            
            function OnGridSelectionCompleteOrderId(values){
                document.getElementById("hidbigOrderId").value = values;
                
            }
             //-->
        </script>
    <script type="text/javascript">
                function OpenUpLoadPage(id) {
            var strURL = "System_docmanage_download.aspx?"+id;
            OpenWindow(strURL,"",300,200);
            
        }
        
    </script>
</head>
<body >
    <ccit:ActionForm id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"/>
        <input type="hidden" id="hidIds" runat="server" />
        <input type="hidden" id="hidvar" runat="server" />
        <input type="hidden" id="hidFoldID" runat="server" />
        <input type="hidden" id="hidFileType" runat="server" />
        <input type="hidden" id="hidShareType" runat="server" />
        <input type="hidden" id="hidfolderType" runat="server" />
        <input type="hidden" id="hidUserId" runat="server" />
        <input type="hidden" id="hidFiesName" runat="server" />
        <input type="hidden" id="hidClassType" runat="server" />
        <input type="hidden" id="hidbigOrderId" runat="server" />
     <table  cellpadding="0" cellspacing="0" width="98%" align="center">
            <tr>
                <td>
                        <dxwgv:ASPxGridView ID="dgMain" runat="server"
                                AutoGenerateColumns="False" Width="100%" KeyFieldName="ID" 
                                            Settings-ShowGroupPanel="true" onhtmlrowcreated="dgMain_HtmlRowCreated" >
                                             <SettingsText GroupPanel="分组栏" />   
                                            <SettingsPager AlwaysShowPager="True" PageSize="15">
                                                <FirstPageButton Visible="True">
                                                </FirstPageButton>
                                                <LastPageButton Visible="True">
                                                </LastPageButton>
                                            </SettingsPager>
                                             <Styles>
                                                <Row CssClass=""></Row>
                                                <AlternatingRow  CssClass="" Enabled="true"/>
                                                <SelectedRow  CssClass=""></SelectedRow>                
                                            </Styles>  
                                            <Columns>
                                                 <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Width="5%">
                                                    <HeaderStyle HorizontalAlign="Center" />
                                                    <HeaderTemplate>
                                                        <input type="checkbox" id="chbCheck" runat="server" onclick="dgMain.SelectAllRowsOnPage(this.checked);"
                                                            style="vertical-align: middle;" title="Select/Unselect all rows on the page"></input>
                                                    </HeaderTemplate>
                                                    <HeaderStyle Paddings-PaddingTop="1" Paddings-PaddingBottom="1" HorizontalAlign="Center">
                                                        <Paddings PaddingTop="2px" PaddingBottom="2px"></Paddings>
                                                    </HeaderStyle>
                                                </dxwgv:GridViewCommandColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="" VisibleIndex="1" width="5%" >
                                                 <HeaderStyle HorizontalAlign="Center" />
                                                 <CellStyle HorizontalAlign="left" Wrap="False"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                <dxwgv:GridViewDataTextColumn Caption="文件编号" VisibleIndex="2" width="10%" FieldName="Number">
                                                 <HeaderStyle HorizontalAlign="Center" />
                                                 <CellStyle HorizontalAlign="left" Wrap="False"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                <dxwgv:GridViewDataTextColumn Caption="名称" VisibleIndex="3" width="30%" FieldName="Title">
                                                 <HeaderStyle HorizontalAlign="Center" />
                                                 <CellStyle HorizontalAlign="left" Wrap="False"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                <dxwgv:GridViewDataTextColumn Caption="上级目录" VisibleIndex="4"  FieldName="URL">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center" Wrap="False"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>   
                                                <dxwgv:GridViewDataTextColumn Caption="大小" VisibleIndex="5" width="15%" FieldName="Length">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Right"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="类型" VisibleIndex="6" Visible="false" width="15%" FieldName="FileType">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>      
                                                <dxwgv:GridViewDataTextColumn Caption="更新日期" VisibleIndex="7" width="20%" FieldName="Updatetime">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center" Wrap="False"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                <dxwgv:GridViewDataTextColumn Caption="记录ID" FieldName="ID" Visible="false" VisibleIndex="8"  ShowInCustomizationForm="false" >
                                                 <HeaderStyle HorizontalAlign="center" />
                                                 <CellStyle HorizontalAlign="Right"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>  
                             
                                               </Columns>
            <%-- 设置页脚中分页 --%>
            <SettingsPager PageSize=13 Mode="ShowPager" AlwaysShowPager=true
                 FirstPageButton-Visible=true LastPageButton-Visible=true  
                 FirstPageButton-Image-AlternateText="" LastPageButton-Image-AlternateText="尾页"
                 NumericButtonCount=5  SEOFriendly="Disabled"
                 PrevPageButton-Visible="true" NextPageButton-Visible="true"
                 ShowSeparators=true Position="Bottom">
                    <FirstPageButton Visible="True"></FirstPageButton>
                    <LastPageButton Visible="True">
                    <Image AlternateText="尾页"></Image>
                    </LastPageButton>
            </SettingsPager>
                 
            <%-- 复选框选择脚本事件--%>
            <ClientSideEvents SelectionChanged="function(s,e){OnGridSelectionChanged();}"                 
             />
            
            <%-- 设置行样式--%>
            <Styles>
                <Row CssClass=""></Row>
                <AlternatingRow  CssClass="" Enabled="true"/>
                <SelectedRow  CssClass=""></SelectedRow>                
            </Styles>
            <%--  显示过滤行--%>
            <Settings ShowFilterRow="false" ShowPreview="True"/>
            
            <%-- 可调整列宽--%>
            <SettingsBehavior ColumnResizeMode="Control" />
            
            <%-- 自定义表头--%>
            <SettingsCustomizationWindow Enabled="true" />
        </dxwgv:ASPxGridView>
        
				</td>
			</tr>
		</table>
    </ccit:ActionForm>
</body>
</html>